/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.testis.communicationmodule.services;

import org.testis.services.AtofModuleTaskExecutor;


/**
 * A class to define a task executor for communication module.
 * This class is a singleton, so each module has its own  thread pool.
 * @author nurhat
 */
public class CommunicationModuleTaskExecutor extends AtofModuleTaskExecutor
{

    static CommunicationModuleTaskExecutor taskExecutor;


    private CommunicationModuleTaskExecutor()
    {
    }


    /**
     * Creates singleton communication  module task executor
     * @return
     */
    public static CommunicationModuleTaskExecutor getInstance()
    {
        if (taskExecutor == null) {
            taskExecutor =
                new CommunicationModuleTaskExecutor();
        }
        return taskExecutor;
    }
}